package bean03;

class FruitTest {
    public static void main(String[] args) {
        Fruit fruit1 = new Fruit();
        fruit1.setName("葡萄");
        fruit1.setArea(" 新疆");
        fruit1.setPrice(6.0);
        System.out.println("水果名：" + fruit1.getName() + ", 产地：" + fruit1.getArea() + ", 单价：" + fruit1.getPrice());

        Fruit fruit2 = new Fruit();
        fruit2.setName("荔枝");
        fruit2.setArea("广东");
        fruit2.setPrice(12.8);
        System.out.println("水果名：" + fruit2.getName() + ", 产地：" + fruit2.getArea() + ", 单价：" + fruit2.getPrice());

        Fruit fruit3 = new Fruit();
        fruit3.setName("榴莲");
        fruit3.setArea("泰国 ");
        fruit3.setPrice(49);
        System.out.println("水果名：" + fruit3.getName() + ", 产地：" + fruit3.getArea() + ", 单价：" + fruit3.getPrice());
    }
}